package flexserverlib.management.runtime.messaging.services.messaging.adapters;

/**
 * Created by IntelliJ IDEA.
 * User: andrewpowell
 * Date: Aug 21, 2008
 * Time: 9:40:03 PM
 * To change this template use File | Settings | File Templates.
 */

import flex.management.BaseControl;
import flex.management.runtime.messaging.services.ServiceAdapterControl;
import flex.management.runtime.messaging.services.messaging.adapters.ActionScriptAdapterControlMBean;
import flexserverlib.messaging.services.messaging.adapters.MailAdapter;

/**
 * The <code>ActionScriptAdapterControl<code> class is the MBean implemenation
 * for monitoring and managing <code>ActionScriptAdapter</code>s at runtime.
 */
public class MailAdapterControl extends ServiceAdapterControl implements ActionScriptAdapterControlMBean {
    private static final String TYPE = "MailAdapter";

    /**
     * Constructs a <code>ActionScriptAdapterControl</code>, assigning its id, managed
     * <code>ActionScriptAdapter</code> and parent MBean.
     *
     * @param serviceAdapter The <code>ActionScriptAdapter</code> managed by this MBean.
     * @param parent         The parent MBean in the management hierarchy.
     */
    public MailAdapterControl(MailAdapter serviceAdapter, BaseControl parent) {
        super(serviceAdapter, parent);
    }

    /*
     * (non-Javadoc)
     * @see flex.management.BaseControlMBean#getType()
     */
    public String getType() {
        return TYPE;
    }


}

